package org.smardi.fakeCall;

import android.app.*;
import android.content.*;
import android.os.*;
import android.view.*;
import android.widget.*;

public class AC_Loading extends Activity {

	LinearLayout layout_loading = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ac_loading);

		layout_loading = (LinearLayout) findViewById(R.id.layout_loading);
		layout_loading.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				movetoNext();
			}
		});

		cTimer.start();
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
		
		cTimer.cancel();
	}

	private void movetoNext() {
		finish();
		cTimer.cancel();
		startActivity(new Intent(AC_Loading.this, AC_FakeMain.class));
	}

	CountDownTimer cTimer = new CountDownTimer(3500, 500) {

		@Override
		public void onTick(long millisUntilFinished) {
			// 아무것도 하지마!
		}

		@Override
		public void onFinish() {
			movetoNext();
		}
	};
}
